package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipRepairRepository;
import cc.comac.mom.bean.EquipRepairRepositorySpareParts;
import cc.comac.mom.bean.EquipRepairRepositorySparePartsBean;
import cc.comac.mom.util.ResultBean;
@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipRepairRepositorySparePartsService {
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody EquipRepairRepository obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/selectByFields",method = RequestMethod.POST)
	public ResultBean selectByFields(@RequestBody EquipRepairRepositorySparePartsBean obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/save",method = RequestMethod.POST)
	public ResultBean save(@RequestBody EquipRepairRepositorySpareParts obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/delete",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody EquipRepairRepositorySpareParts obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/update",method = RequestMethod.POST)
	public ResultBean update(@RequestBody EquipRepairRepositorySpareParts obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/saveBatch",method = RequestMethod.POST)
	public ResultBean save(@RequestBody List<EquipRepairRepositorySpareParts> list);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/updateBatch",method = RequestMethod.POST)
	public ResultBean update(@RequestBody List<EquipRepairRepositorySpareParts> list);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/deleteBatch",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody List<EquipRepairRepositorySpareParts> list);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositorySparePartsService/getById",method = RequestMethod.GET)
	public EquipRepairRepositorySpareParts getById(long id);
}
